package rpcServerStore

import (
	"fmt"
)

type AircraftInfo struct {
	ID        string
	Longitude float64
	Latitude  float64
	Altitude  float64
	Speed     float64
	Direction float64
}

type DataStore int

func (ds *DataStore) SaveDB(args *AircraftInfo, reply *int) error {
	*reply = 1
	fmt.Println("Saved!!", args.ID, args.Latitude)
	return nil
}
